package com.shop.cereshop.business.dao.dl;

import com.shop.cereshop.business.dl.logic.domain.CereShopCarousel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
public interface CereShopCarouselDAO {
    int deleteByPrimaryKey(Long carousel);

    int insert(CereShopCarousel record);

    int insertSelective(CereShopCarousel record);

    CereShopCarousel selectByPrimaryKey(Long carousel);

    int updateByPrimaryKeySelective(CereShopCarousel record);

    int updateByPrimaryKey(CereShopCarousel record);

    List<CereShopCarousel> select();

    Integer getMaxId();

    Integer enableDisable(@Param("carousel") Long carousel, @Param("state") Byte state);
}